package ch.sv7.tool.dbmanager.db.difference;

import ch.sv7.tool.dbmanager.db.ColumnSchema;

public class NotNullableColumnDifference extends AbstractColumnDifference {

	public NotNullableColumnDifference(ColumnSchema expectedColumnSchema, ColumnSchema actualColumnSchema) {
		super(expectedColumnSchema, actualColumnSchema);
	}

	public String getMessage() {
		return super.getMessage() + " is not nullable";
	}
	
	public boolean isBlocker() {
		return getActualColumnSchema().getType().getDefaultValue() != null ? false : true;
	}		
}
